﻿using System;
using System.Linq.Expressions;

namespace NMA.Web.Core.CriteriaExpression
{
    using NMA.Web.Core.CriteriaExpression.Category;
    using NMA.Web.Areas.Admin.Models.SearchCriteria;

    public class CriteriaExpressionFactory : ICriteriaExpressionFactory
    {
        [Obsolete("This function is not used")]
        public Expression<Func<CategorySearchCriteria, bool>> CreateCategorySearchCriteria(CategorySearchCriteria criteriaModel, SearchCategoryCriteriaType criteriaType)
        {
            return new SearchCategoryCriteriaExpression().CreatedCriteriaExpression(criteriaModel, criteriaType);
        }
    }
}